<?php
	require("header.html");
?>
	
	<link href="css/slides.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){	
			$("#slider").easySlider({
				auto: true, 
				continuous: true,
				numeric: false,
			});
		});	
	</script>
	
	
		<div id="wrapper">
			<div class="bann">
				<img src="image/image1.jpg" />
			</div><!--end bann-->
			
			<div class="content">
			<ul id="sdt_menu" class="sdt_menu">
				<li>
                <a href="#">
                        <img src="img/1.jpg" alt=""/>
                        <span class="sdt_active"></span>
                        <span class="sdt_wrap">

                            <span class="sdt_link">Home</span>
                            <span class="sdt_descr">Bienvenida</span>
                        </span>
                </a>
				</li>
				
				<li>
                <a href="servicios.php">
                    <img src="img/2.jpg" alt=""/>
                    <span class="sdt_active"></span>
                    <span class="sdt_wrap">

                        <span class="sdt_link">Servicios</span>
                        <span class="sdt_descr">Herramientas</span>
                    </span>
                </a>
				</li>

				<li>
                <a href="#">
                        <img src="img/3.jpg" alt=""/>
                        <span class="sdt_active"></span>
                        <span class="sdt_wrap">

                            <span class="sdt_link">Portfolio</span>
                            <span class="sdt_descr">Nuestro trabajo</span>
                        </span>
                </a>
					<div class="sdt_box">
                        <a href="desarrollo.php">Desarrollo</a>
                        <a href="prog.php">Programaci&oacute;n</a>
                        <a href="mockups.php">Mockups</a>
                        <a href="diseno.php">Dise&ntilde;o web</a>
					</div>

				</li>

				<li>
                <a href="contacto.php">
                    <img src="img/5.jpg" alt=""/>
                    <span class="sdt_active"></span>
                    <span class="sdt_wrap">

                        <span class="sdt_link">Contacto</span>
                        <span class="sdt_descr">Cons&uacute;ltenos</span>
                    </span>
                </a>
				</li>

				<li>
                <a href="proyectos.php">
                    <img src="img/6.jpg" alt=""/>
                    <span class="sdt_active"></span>
                    <span class="sdt_wrap">

                        <span class="sdt_link">Proyectos</span>
                        <span class="sdt_descr">En estudio</span>
                    </span>
                </a>
				</li>

				<li>
                <a href="nos.php">
                        <img src="img/4.jpg" alt=""/>
                        <span class="sdt_active"></span>
                        <span class="sdt_wrap">

                                <span class="sdt_link">Nosotros</span>
                                <span class="sdt_descr">Prop&oacute;sitos</span>
                        </span>
                </a>
				</li>

			</ul>
		</div><!--end content-->
   <!-- The JavaScript -->
        <script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
        <script type="text/javascript">
            $(function() {
				/**
				* for each menu element, on mouseenter, 
				* we enlarge the image, and show both sdt_active span and 
				* sdt_wrap span. If the element has a sub menu (sdt_box),
				* then we slide it - if the element is the last one in the menu
				* we slide it to the left, otherwise to the right
				*/
                $('#sdt_menu > li').bind('mouseenter',function(){
					var $elem = $(this);
					$elem.find('img')
						 .stop(true)
						 .animate({
							'width':'160px',
							'height':'106px',
							'left':'0px'
						 },400,'easeOutBack')
						 .andSelf()
						 .find('.sdt_wrap')
					     .stop(true)
						 .animate({'top':'130px'},500,'easeOutBack')
						 .andSelf()
						 .find('.sdt_active')
					     .stop(true)
						 .animate({'height':'106px'},300,function(){
						var $sub_menu = $elem.find('.sdt_box');
						if($sub_menu.length){
							var left = '160px';
							if($elem.parent().children().length == $elem.index()+1)
								left = '-160px';
							$sub_menu.show().animate({'left':left},180);
						}	
					});
				}).bind('mouseleave',function(){
					var $elem = $(this);
					var $sub_menu = $elem.find('.sdt_box');
					if($sub_menu.length)
						$sub_menu.hide().css('left','0px');
					
					$elem.find('.sdt_active')
						 .stop(true)
						 .animate({'height':'0px'},300)
						 .andSelf().find('img')
						 .stop(true)
						 .animate({
							'width':'0px',
							'height':'0px',
							'left':'85px'},400)
						 .andSelf()
						 .find('.sdt_wrap')
						 .stop(true)
						 .animate({'top':'25px'},500);
				});
            });
        </script>
	</div><!--end wrapper-->

<?php
	require("footer.html");
?>